/// countryCode : "MX"
/// countryName : "Mexico"
/// areaCode : "+52"
/// phonePrefix : ""
/// phoneLength : 10
/// channelId : "SmartLoan"
/// baseUrl : "http://loanMarketApp.gccloud.xyz/"
/// extraMeta : {"advanceAccessKey":"54e03a28ec301bb8","advanceSecretKey":"36181f76c174e848","afId":"yFbZbrMQ7eoqbZ4BdAPN","advanceFace":"mex","advanceCardType":"CURP"}

class AppConfigModel {
  AppConfigModel({
      this.countryCode, 
      this.countryName, 
      this.areaCode, 
      this.phonePrefix, 
      this.phoneLength, 
      this.channelId, 
      this.baseUrl, 
      this.extraMeta,});

  AppConfigModel.fromJson(dynamic json) {
    countryCode = json['countryCode'];
    countryName = json['countryName'];
    areaCode = json['areaCode'];
    phonePrefix = json['phonePrefix'];
    phoneLength = json['phoneLength'];
    channelId = json['channelId'];
    baseUrl = json['baseUrl'];
    extraMeta = json['extraMeta'] != null ? ExtraMeta.fromJson(json['extraMeta']) : null;
  }
  String? countryCode;
  String? countryName;
  String? areaCode;
  String? phonePrefix;
  int? phoneLength;
  String? channelId;
  String? baseUrl;
  ExtraMeta? extraMeta;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['countryCode'] = countryCode;
    map['countryName'] = countryName;
    map['areaCode'] = areaCode;
    map['phonePrefix'] = phonePrefix;
    map['phoneLength'] = phoneLength;
    map['channelId'] = channelId;
    map['baseUrl'] = baseUrl;
    if (extraMeta != null) {
      map['extraMeta'] = extraMeta?.toJson();
    }
    return map;
  }

}

/// advanceAccessKey : "54e03a28ec301bb8"
/// advanceSecretKey : "36181f76c174e848"
/// afId : "yFbZbrMQ7eoqbZ4BdAPN"
/// advanceFace : "mex"
/// advanceCardType : "CURP"

class ExtraMeta {
  ExtraMeta({
      this.advanceAccessKey, 
      this.advanceSecretKey, 
      this.afId, 
      this.advanceFace, 
      this.advanceCardType,});

  ExtraMeta.fromJson(dynamic json) {
    advanceAccessKey = json['advanceAccessKey'];
    advanceSecretKey = json['advanceSecretKey'];
    afId = json['afId'];
    advanceFace = json['advanceFace'];
    advanceCardType = json['advanceCardType'];
  }
  String? advanceAccessKey;
  String? advanceSecretKey;
  String? afId;
  String? advanceFace;
  String? advanceCardType;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['advanceAccessKey'] = advanceAccessKey;
    map['advanceSecretKey'] = advanceSecretKey;
    map['afId'] = afId;
    map['advanceFace'] = advanceFace;
    map['advanceCardType'] = advanceCardType;
    return map;
  }

}